﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Process;
[ProtoContract]
public class ProcessCvData:ProcessBaseData
{
    [ProtoMember(1)]
    public long EquipId { get; set; }
    /// <summary>
    /// 托盘号
    /// </summary>
    [ProtoMember(2)]
    public string TrayCode { get; set; }
    /// <summary>
    /// 运行状态 0 停止 1 运行
    /// </summary>
    [ProtoMember(3)]
    public int Active { get; set; }
   

    /// <summary>
    /// 是否存在托盘
    /// </summary>
    [ProtoMember(5)]
    public int IsExistTray { get; set; }

    /// <summary>
    /// 目的地
    /// </summary>
    [ProtoMember(6)]
    public int Dest { get; set; }
    /// <summary>
    /// 请求扫码
    /// </summary>
    [ProtoMember(7)]
    public int IsBcrReady { get; set; }

    /// <summary>
    /// 托盘类型,发到叠盘机的实盘需要区分不同批次
    /// </summary>
    [ProtoMember(8)]
    public int TrayType { get; set; }
    /// <summary>
    /// 指令类型 1:入口；2:出口； 3:移动
    /// </summary>
    [ProtoMember(9)]
    public int JobType { get; set; }

    /// <summary>
    /// 出库站台允许堆垛机放货
    /// </summary>
    [ProtoMember(10)]
    public int IsAllowSet { get; set; }

    /// <summary>
    /// 入库站台允许堆垛机取货
    /// </summary>
    [ProtoMember(11)]
    public int IsAllowTake { get; set; }
    /// <summary>
    /// 任务号
    /// </summary>
    [ProtoMember(12)]
    public int JobNumber { get; set; }
    /// <summary>
    /// 叠盘完成（化成叠盘机）
    /// </summary>
    [ProtoMember(13)]
    public int IsStackComplete { get; set; }
    /// <summary>
    /// 设备Group编号
    /// </summary>
    [ProtoMember(14)]
    public int EquipNum { get; set; }
    /// <summary>
    /// 错误码
    /// </summary>
    [ProtoMember(15)]
    public int ErrorCode { get; set; }

    /// <summary>
    /// 0 :手动, 1：自动
    /// </summary>
    [ProtoMember(16)]
    public int Mode { get; set; }

    [ProtoMember(18)]
    public string Message { get; set; }

    [ProtoMember(19)]
    public bool IsConnect { get; set; }

    /// <summary>
    /// 读取扫码枪总数
    /// </summary>
    [ProtoMember(20)]
    public int ReadAllNum { get; set; }

    /// <summary>
    /// 读取到的扫码枪
    /// </summary>
    [ProtoMember(21)]
    public int ReadOkNum { get; set; }

    /// <summary>
    /// 老任务号
    /// </summary>
    [ProtoMember(22)]
    public int JobNumberOld { get; set; }
    /// <summary>
    /// 托盘停留时长（分钟）
    /// </summary>
    [ProtoMember(23)]
    public double TrayOnTime { get; set; }
    /// <summary>
    /// 是否拥有扫码抢
    /// </summary>
    [ProtoMember(24)]
    public bool HasBcr { get; set; }
    /// <summary>
    /// 协议
    /// </summary>
    [ProtoMember(25)]
    public string ProtobufType { get; set; }
    
}
